package com.aaa.proxy;

/**
 * @author ：zhouhangyong
 * @date ：Created in 2022/6/15 8:44
 * @description：测试类
 * @modified By：
 * @version:
 */
public class Text {
    public static void main(String[] args) {
//        ProxyCGLib proxyCGLib = new ProxyCGLib();
//        MouseBuyServiceImpl mouseBuyService = (MouseBuyServiceImpl) proxyCGLib.getObjectCG(MouseBuyServiceImpl.class);
//        mouseBuyService.mouseBy(500);

        MouseBuyService mouseBuyService1 = new MouseProxyServiceImpl();
        ProxyService proxyService = new ProxyService();
        MouseBuyService targetObj = (MouseBuyService)proxyService.getTargetObj(mouseBuyService1);
        targetObj.byMouse(8000);

    }
}
